package com.boot.main.mapper;

import com.boot.main.entity.ScomProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ScomProductMapper {
    List<ScomProduct> getProducts(@Param("currentSize") Integer currentSize, @Param("limit") Integer limit, @Param("name") String name, @Param("cid") Long cid, @Param("shop_id") Long shop_id);
    ScomProduct getProductByNum(@Param("pro_number") String pro_number);
    Integer getTotalCount();
    Integer saveProduct(ScomProduct ad);
    Integer updateProduct(ScomProduct ad);
    Integer deleteProduct(@Param("id") Long id);
}
